package pers.ascend.spring.cloud.greenwich.service.governance.eureka.consumer.ribbon.base.config;

import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * 说明：
 *
 * @author ascend
 * 2021/3/16 8:04
 */
@Configuration
public class EurekaConsumerRibbonConfig {
    @Bean
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplateBuilder().build();
    }
}
